package glossos.parsing.action;

import glossos.parsing.WordBuffer;

/**
 * This action appends a lookahead character to the {@link WordBuffer}, that is,
 * a character to be included in the next sentence.  
 * @author Otavio Macedo
 *
 */
public class LookaheadAction implements Action {

	private WordBuffer buffer;

	public LookaheadAction(WordBuffer buffer) {
		this.buffer = buffer;
	}

	public void execute(char c) {
		buffer.group();
		buffer.append(c);
	}

}
